target_sources(spark-utils
    PRIVATE
        AsyncFileLogger.cpp
        Funcs.cpp
        LogStream.cpp
        Logger.cpp
)

if(BUILD_TEST)
    add_subdirectory(Test)
endif()

set_target_properties(spark-utils
PROPERTIES
    PUBLIC_HEADER
"${CMAKE_CURRENT_LIST_DIR}/AsyncFileLogger.h;\
${CMAKE_CURRENT_LIST_DIR}/Any.h;\
${CMAKE_CURRENT_LIST_DIR}/Date.h;\
${CMAKE_CURRENT_LIST_DIR}/Funcs.h;\
${CMAKE_CURRENT_LIST_DIR}/Logger.h;\
${CMAKE_CURRENT_LIST_DIR}/LogStream.h;\
${CMAKE_CURRENT_LIST_DIR}/MPSCQueue.h;\
${CMAKE_CURRENT_LIST_DIR}/NonCopyable.h;\
${CMAKE_CURRENT_LIST_DIR}/TimePoint.h;\
${CMAKE_CURRENT_LIST_DIR}/UniquePtr.h;"
)